﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
//using Kevin.Framework.Validation;

namespace Kevin.Framework.Validation
{
    public class ValidationFactory
    {
        public static Validator CreateValidator(System.Type type, List<string> propNames)
        {
            return CreateValidator(type, string.Empty, propNames);
        }

        public static Validator CreateValidator(System.Type type, string roluSet,List<string> propNames)
        {
            MetadataValidatorBuilder builder = new MetadataValidatorBuilder();
            return builder.CreateValidator(type, roluSet, propNames);
        }
        
    }
}